<?php
/**
 * User MyReservations print Controller
 *
 * @access 	public
 * @author 	Valentin
 * @copyright	ResMania 2009 all rights reserved.
 * @link		http://developer.resmania.com/api
 */
class RM_User_MyReservations_PrintController extends RM_User_MyReservations_MainController
{
    function showJsonAction()
    {
        try {
            $reservation = $this->getReservation($this->_getParam('reservationID'));
            $html = RM_Reservations::getInvoice($reservation);
        } catch (RM_Exception $e) {
            $html = $e->getMessage();            
        }

        return array(
            'data' => $html,
            'encoded' => true
        );
    }
}